package com.xbongbong.pro.fundset.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Map;

/**
 *      a.客户、合同：应收账期字段开启/关闭后，不允许关闭/启用
 *      b.发票：关联回款类型、回款单、应收款字段，开启后允许关闭，关闭后不允许启用
 *      c.回款单/应收款：开票金额字段，开启后允许关闭，关闭后不允许启用
 * @author zcp
 * @version v1.0
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class FundSetHandleExplainPojo implements Serializable {
    private static final long serialVersionUID = 3968824439320584701L;

    /**
     * 要开启字段的业务
     * key：businessType
     * value：要开启的字段-开启后是否能再关闭isForbidden值(当该值为0时，关闭的字段不能再启用、启用的字段不能再关闭)
     */
    private Map<Integer, Map<String, Integer>> openBusinessMap;

    /**
     * 要关闭字段的业务
     * key：businessType
     * value：要关闭的字段-关闭后是否能再开启isForbidden值(当该值为0时，关闭的字段不能再启用、启用的字段不能再关闭)
     */
    private Map<Integer, Map<String, Integer>> closeBusinessMap;

    public FundSetHandleExplainPojo(Map<Integer, Map<String, Integer>> openBusinessMap, Map<Integer, Map<String, Integer>> closeBusinessMap){
        this.openBusinessMap = openBusinessMap;
        this.closeBusinessMap = closeBusinessMap;
    }
}
